﻿namespace Worldme.YHChatSDK.Framework.Core
{
    internal class GlobalThreadPool
    {
        private static readonly TaskScheduler _taskScheduler = TaskScheduler.Default;

        public static void Execute(GlobalEventHandle handle)
        {
            Task.Factory.StartNew(handle.GetAction(), CancellationToken.None, TaskCreationOptions.None, _taskScheduler);
        }
    }
}
